package com.qf.feign.api;

import com.qf.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "shop-order",path = "/orderController")
public interface OrderService {

    @RequestMapping("/getOrderById/{oid}")
    public Order getOrderById(@PathVariable("oid") String oid);

    @RequestMapping("/updateOrderStatus")
    void updateOrderStatus(@RequestParam("oid") String oid, @RequestParam("status") Integer status);
}
